﻿CREATE PROCEDURE [dbo].[GetWoxFile]
	@WorkflowGuid VARCHAR(50) 
AS
	SELECT WoxFile FROM WoxFiles WHERE WorkflowGuid=@WorkflowGuid AND Version IN (
		SELECT MAX(Version) FROM WoxFiles WHERE WorkflowGuid=@WorkflowGuid);
RETURN 0;